home *** CD-ROM | disk | FTP | other *** search
- stop();
- var seschocs = _root.voitureverte.chocs;
- var sonart = _root.voitureverte.noteArtistiqueFinale;
- var sonscore = Math.ceil(_root.voitureverte.score * 100);
- var sontemps = _root.elapsedTime;
- if(seschocs < 0)
- {
- chocs.text = "";
- }
- else if(seschocs < 2)
- {
- chocs.text = seschocs + " choc\n";
- }
- else
- {
- chocs.text = seschocs + " chocs\n";
- }
- chocs.text += "artistique : " + sonart;
- score.text = "score : " + sonscore / 100;
- var position = -1;
- var total = -1;
- var parcoursenr = 0;
- enregistrer.onPress = function()
- {
- _root.showButtons(false);
- gotoAndPlay(16);
- myVar = new LoadVars();
- myVar.seschocs = seschocs;
- myVar.sonart = sonart;
- myVar.sonscore = sonscore;
- myVar.sontemps = sontemps;
- myVar.sonnom = sonnom;
- myVar.sonsite = sonsite;
- myVar.fc = _root.voitureverte.forceChocs;
- myVar.position = -1;
- myVar.total = -1;
- myVar.sendAndLoad("derapage.php",myVar,"POST");
- myVar.onLoad = function()
- {
- position = this.position;
- total = this.total;
- if(this.askparcours == 1)
- {
- _root.message.messagetext = "Enregistrement\ndu parcours :)";
- _root.message.gotoAndPlay(2);
- myParcours = new LoadVars();
- myParcours.sonnom = sonnom;
- myParcours.sonscore = sonscore;
- myParcours.parcours = "1.01_";
- tmpA = new Array();
- i = 0;
- while(i < _root.voitureverte.replayRecEventsIndex)
- {
- tmpA[i] = {clef:_root.voitureverte.replayEvents[i].updown + "_" + _root.getAlphaNum(_root.voitureverte.replayEvents[i].keycode),framenb:_root.voitureverte.replayEvents[i].framenb};
- i++;
- }
- tmpA.sortOn(["clef","framenb"],Array.NUMERIC);
- theCurrentKey = "";
- i = 0;
- while(i < _root.voitureverte.replayRecEventsIndex)
- {
- key = tmpA[i].clef;
- if(key != theCurrentKey)
- {
- if(theCurrentKey != "")
- {
- myParcours.parcours += "!";
- }
- theCurrentKey = key;
- myParcours.parcours += theCurrentKey + "_" + _root.getAlphaNum(tmpA[i].framenb);
- }
- else
- {
- myParcours.parcours += "_" + _root.getAlphaNum(tmpA[i].framenb - tmpA[i - 1].framenb);
- }
- i++;
- }
- tmpA = new Array();
- myParcours.sendAndLoad("derapage.php",myParcours,"POST");
- myParcours.onLoad = function()
- {
- parcoursenr = this.parcoursenr;
- _root.replayos.gotoAndPlay(2);
- _root.showButtons(true);
- };
- }
- else
- {
- _root.replayos.gotoAndPlay(2);
- _root.showButtons(true);
- }
- };
- };
-